package com.lagou.springbootweb;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class TestController {
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    String test() {
        return "hello world";
    }

    @RequestMapping(value = "/provinces", method = RequestMethod.GET)
    String getProvinces() {
        return "test.";
    }
}
